package com.itheima.test0906.test04;

import java.util.Scanner;

public class TestSwimming {
    public static void main(String[] args) {

        goSwimming(new Swimming() {
            @Override
            public void swim(String name, String age) {
                System.out.println(age + "岁的" + name + "明天准备去游泳(lambda带参数无返回值)");
            }
        });

        System.out.println("************************");
    }

    public static void goSwimming(Swimming swimming){
        swimming.swim("张三","23");
    }
}
